import { reactive, ref } from "vue";

export default function InitHook() {
  const tableRef = ref<any>(null);
  const loading = ref<boolean>(false);
  const selectRow = ref<Base.GeneraDataType | null>(null);
  const tableData = ref<Array<Base.GeneraDataType>>([]);
  const searchForm = reactive<{
    warehouseCode: string;
    zipCode: string;
  }>({
    warehouseCode: "",
    zipCode: ""
  });
  return {
    tableData,
    loading,
    selectRow,
    tableRef,
    searchForm
  };
}
